import React from 'react';

import CommonSendRequestAction from '../common/CommonSendRequestAction';
import Constants from '../../common/Constants';
import ResponseConstants from '../../common/ResponseConstants';

export default class QZ_RequestCreateQunliaoAction extends CommonSendRequestAction{
  constructor() {
    super();

    this.moduleType = Constants.MODULE_TYPE.QUAN_ZI;
    this.name = "QZ_RequestCreateQunliaoAction";
  }

  _dealFinishFailed(data, response, detail) {
    this.caller.setState({
      viewStatus:response.status,
      statusText:detail + " " + response.status,
      createResult:2,
    })
  }

  _dealFinishSucess(data, response) {
    this.caller.setState({
      viewStatus:response.status,
      createResult:1,
    })
  }
}
